#字符串方法
class Student:
    def __init__(self,name,age):
        self.name=name
        self.age=age
    def __str__(self):
        return (f"name:{self.name},age{self.age}")

user1 = Student("leo","18")
print(user1)